<template>
  <div class="detail">
    <h3>详情页</h3>
  </div>
</template>

<script>
export default {
  name: 'goods-detail',
  validate({params, query}) {
    return typeof params.id === 'number'
  },
  // 动画名
  transition: 'test'
}
</script>

<!-- <style scoped>
可以写在内部也可以写在外部
.test-enter-active, .test-leave-active {
  transform: .5s ease all;
}
.text-enter, .test-leave-active {
  margin-left: -1000px;
}
</style> -->